import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import store from './store'
import {
	Button,
	NavBar,
	Icon,
	Swipe,
	SwipeItem,
	Row,
	Col,
	List,
	Lazyload,
	Field,
	CellGroup,
	Toast,
	Tabs,
	Tab,
	Sidebar,
	SidebarItem,
	PullRefresh,
	Stepper,
	Tabbar,
  TabbarItem
} from 'vant'

Vue.config.productionTip = false

Vue.use(Button)
	.use(NavBar)
	.use(Icon)
	.use(Swipe)
	.use(SwipeItem)
	.use(Row)
	.use(Col)
	.use(List)
	.use(Lazyload, {
		loading: require('@/assets/image/loading2.png')
	})
	.use(Field)
	.use(CellGroup)
	.use(Toast)
	.use(Tabs)
	.use(Tab)
	.use(Sidebar)
	.use(SidebarItem)
	.use(PullRefresh)
	.use(Stepper)
	.use(Tabbar).use(TabbarItem)

Vue.prototype.$axios = axios
axios.defaults.baseURL =
	'https://www.fastmock.site/mock/9036b1124e34e8233504d78cc5cf0fa5'

new Vue({
  store,
	router,
	render: h => h(App)
}).$mount('#app')
